package com.itaem.community.modules.pay.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itaem.community.core.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 缴费
 * </p>
 *
 * @author tomato
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pay")
@ApiModel(value="PayEntity对象", description="缴费")
public class PayEntity extends Entity {

    private static final long serialVersionUID = 1L;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "缴费创建时间（属于哪个月？）")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "支付人id")
    private Integer payerId;

    @ApiModelProperty(value = "收费人id")
    private Integer collectorId;

    @ApiModelProperty(value = "水费")
    private BigDecimal waterFees;

    @ApiModelProperty(value = "电费")
    private BigDecimal electricityFees;

    @ApiModelProperty(value = "物业管理费")
    private BigDecimal propertyManagementFees;

    @ApiModelProperty(value = "缴费账单状态 0;未缴费 1:已缴费")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
